package com.learn.rpc.socket.proxy;

import com.learn.rpc.common.IAdminUserService;

/**
 * 通过动态代理的方式生成接口调用的实现类,在动态代理中进行远程调用
 * @author wangxing
 * @version 2020/8/14 17:51 Administrator
 */
public class RpcClient3 {
    public static void main(String[] args) {
        IAdminUserService service = Stub.getIAdminUserService();
//        System.out.println(service.findAdminUserById(12131));
        IAdminUserService service2 = Stub.getIAdminUserServiceObject();
        System.out.println(service2.findAdminUserById(121311));
    }
}
